< previous page page_777 next page >

Page 777
Open the REPLMAST.MDB file and its BookSales table. Notice that the s_Generation field was updated on the record that was changed.
The Synchronize Method
In the preceding example, we used the Synchronize method to perform a bidirectional synchronization of data. This two-way synchronization is the default implementation of this method. The Synchronize method can also be used to import information from another database, export changes to another database, and even synchronize with databases over the Internet.
The structure of the Synchronize statement is
Database.Synchronize pathname, exchange
where pathname is a string value naming the destination of the replication, and exchange is one of dbRepExportChanges, dbRepImportChanges, dbRepImpExpChanges, or dbRepSyncInternet.
Use the dbRepExportChanges to send changes to another database without receiving updates from that database. Use dbRepImportChanges to bring in changes from another replica set member without sending out any changes. If you enter no exchange value, or use dbRepImpExpChanges, data flows both ways during a synchronization. Finally, use dbRepSyncInternet to perform a synchronization over the Internet.
Note.gif
You need the Microsoft Office 97 Developer Edition if you want to perform data synchronization over the Internet.

Note.gif
Be aware that the .MDB format is used by the Microsoft Jet database engine. The Microsoft Jet engine is used by both Visual Basic and Microsoft Access. It is common practice by Access developers to store data, forms, reports, and queries in the same .MDB file. When you synchronize, changes to forms or reports contained within the database are also synchronized.

 
< previous page page_777 next page >

If you like this book, buy it!